package com.seewo.dubbo.debugger.admin.service;

import com.baomidou.mybatisplus.service.IService;
import com.seewo.dubbo.debugger.admin.entity.Service;
import com.seewo.dubbo.debugger.admin.mapper.ServiceMapper;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author chenliangliang
 * @since 2018-07-25
 */
public interface IServiceService extends IService<Service> {

    /**
     * 获取mapper
     *
     * @return ServiceMapper
     */
    ServiceMapper getMapper();

    /**
     * 获取某一个服务下的接口列表
     *
     * @param service 服务：registryId，address，protocol
     * @return 接口列表
     */
    Service getInterfaceList(Service service);

    /**
     * 更新描述
     * @param service 服务 id,desc
     */
    void updateDesc(Service service);
}
